<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<meta charset="UTF-8"></meta>
	<title>Danh sách Phiếu nhận xét quán ăn</title>

	<link rel="stylesheet" type="text/css"
		href="resources/css/bootstrap.css" media="all" />
	<link rel="stylesheet" type="text/css"
		href="resources/css/bootstrap-responsive.css" media="all" />
	<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
</h:head>

<body>
	<h:form>
		<center>
			<b><h2>Danh sách Phiếu nhận xét quán ăn</h2></b>
		</center>
		<div
			class="order-table order-table-header order-table-odd-row order-table-even-row">
			<p:dataTable var="list"
				value="#{phieuNhanXetQAManageBean.loadNhanXetQA()}" paginator="true"
				rows="10"
				paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
				rowsPerPageTemplate="5,10,20">
				<p:column headerText="Mã phiếu đánh giá" style="width:15%">
					<p style="color: red">#{list.maPNXQA}</p>
				</p:column>
				<p:column headerText="Đánh giá quán ăn" style="width:25%">#{list.danhGiaQA}</p:column>
				<p:column headerText="Tên tài khoản sinh viên" style="width:25%">#{list.tenTKSV}</p:column>
			</p:dataTable>
		</div>
		<div>
			<H2></H2>
		</div>
		<center>
			<b><h2>Danh sách CT Phiếu nhận xét quán ăn</h2></b>
		</center>
		<div
			class="order-table order-table-header order-table-odd-row order-table-even-row">
			<p:dataTable var="list"
				value="#{phieuNhanXetQAManageBean.loadCTNhanXetQA()}" paginator="true"
				rows="10"
				paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
				rowsPerPageTemplate="5,10,20">
				<p:column headerText="Mã phiếu đánh giá" style="width:15%">
					<p style="color: red">#{list.maPNXQA}</p>
				</p:column>
				<p:column headerText="Mã quán ăn" style="width:25%">#{list.maQA}</p:column>
				<p:column headerText="Nội dung nhận xét" style="width:25%">#{list.noiDungNhanXetQA}</p:column>
			</p:dataTable>
		</div>
	</h:form>
</body>
</html>